package com.learn.spring;

import java.util.Date;

public class Order {
    private String code;
    private String des;
    private Date addDate = new Date();

    public Order(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    @Override
    public String toString() {
        return "Order{" +
                "code='" + code + '\'' +
                ", des='" + des + '\'' +
                ", addDate=" + addDate +
                '}';
    }
}
